package com.example.transaction.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

@TableName("leavedMessage")
public class LeavedMessage implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "leavedMessageID", type = IdType.AUTO)
    private Integer leavedMessageID;

    @TableField(value = "UserID")
    private Integer userID;

    @TableField(value = "ItemID")
    private Integer itemID;

    @TableField(value = "messageTime")
    private LocalDateTime messageTime;

    @TableField(value = "MessageContent")
    private String messageContent;

    @TableField("deleted")
    private Integer deleted;

    public LocalDateTime getMessageTime() {
        return messageTime;
    }

    public void setMessageTime(LocalDateTime messageTime) {
        this.messageTime = messageTime;
    }

    public Integer getLeavedMessageID() {
        return leavedMessageID;
    }

    public void setLeavedMessageID(Integer leavedMessageID) {
        this.leavedMessageID = leavedMessageID;
    }

    public Integer getUserID() {
        return userID;
    }

    public void setUserID(Integer userID) {
        this.userID = userID;
    }

    public Integer getItemID() {
        return itemID;
    }

    public void setItemID(Integer itemID) {
        this.itemID = itemID;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "LeavedMessage{" +
                "leavedMessageID=" + leavedMessageID +
                ", userID=" + userID +
                ", itemID=" + itemID +
                ", messageTime=" + messageTime +
                ", messageContent='" + messageContent + '\'' +
                ", deleted=" + deleted +
                '}';
    }
}
